package com.itheima.d14_datastream;

import java.io.DataOutputStream;
import java.io.FileOutputStream;
import java.io.FilterOutputStream;

/**
 * 特殊数据输出流：DataInputStream、DataOutputStream
 */
public class DataStreamDemo1 {
    public static void main(String[] args) {
        try(DataOutputStream dos = new DataOutputStream(new FileOutputStream("day06-file-io\\src\\test11.txt"));
        )
        { dos.writeByte(97);
            dos.writeBoolean(true);
            dos.writeChar('a');
            dos.writeDouble(1.8);
            dos.writeUTF("卧槽");

        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
